package com.netcracker.studportal.server.main_test;

import org.json.simple.JSONObject;

import com.netcracker.studportal.server.facade.FacadeAdmin;
import com.netcracker.studportal.server.model.Faculty;
import com.netcracker.studportal.server.model.Professor;
import com.netcracker.studportal.server.model.University;
import com.netcracker.studportal.server.model.User;
import com.netcracker.studportal.server.util.FacadeUtil;

public class MainFacadeAdminUser {
	public static void main(String args[]){
		FacadeAdmin fa= new  FacadeAdmin();
		try{
			
		JSONObject obj = new JSONObject();
				
		
		obj.put("user_id", "5");
		obj.put("type", "student");
		obj.put("login", "4354");
		obj.put("password", "534564");
		
	
	  //  String str=fa.deleteFieldUser(obj.toString());
      // String str=fa.updateFieldUser(obj.toString());
        
		//String str=fa.addNewUser(obj.toString());
		//System.out.println("str "+str);
		
		String all_user=fa.getAllUser();		
		System.out.println(all_user);	
		
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
